package com.pro.common.api.cursor.sync.model.dto;

public record BatchResult<C>(boolean success, C newCursor, int count) {
    public static <C> BatchResult<C> noData() {
        return new BatchResult<>(false, null, 0);
    }

    public static <C> BatchResult<C> noProgress() {
        return new BatchResult<>(false, null, 0);
    }

    public static <C> BatchResult<C> success(C cursor, int count) {
        return new BatchResult<>(true, cursor, count);
    }
}
